<?php
class Bbling_Model_Entity_Fund extends Evebit_Model_Abstract {
	
	protected $_resourceName = "Bbling_Model_Resource_Fund";
	
	protected $_resourceCollectionName = "Bbling_Model_Collection_Fund";
	
    protected function _afterLoad() {
		return $this;
	}
	
	/**
	 * (non-PHPdoc)
	 * @see Evebit_Model_Abstract::_beforeSave()
	 */
	protected function _beforeSave() {	
		return $this;
	}
	/**
	 * (non-PHPdoc)
	 * @return Evebit_Model_Abstract::_beforeDelete()
	 */
	protected function _beforeDelete() {
		return $this;
	}

	public function getList(){
		$items = $this->getCollection()->getItems();
		$data = null;
		$data['*'] = 'please choose:';
		foreach ($items as $item) {
			$string = $item->from;
			if ($item->to){
				$string .= ' -- '.$item->to; 
			}else {
				$string = 'More Than '.$string;
			}
			$data[$item->id] = $string;
		}
		return $data;
	}
}